package com.forum.module.blog.service.comment;

import com.baomidou.mybatisplus.extension.service.IService;
import com.forum.framework.common.pojo.PageResult;
import com.forum.module.blog.controller.comment.vo.CommentPageReqVO;
import com.forum.module.blog.controller.comment.vo.CommentSavaReqVO;
import com.forum.module.blog.dal.dataobject.comment.CommentDO;

import java.util.List;

public interface CommentService extends IService<CommentDO> {
    Long createComment(CommentSavaReqVO reqVO);

    void updateComment(CommentSavaReqVO reqVO);

    void deleteById(Long id);

    PageResult<CommentDO> getCommentPage(CommentPageReqVO pageReqVO);

    List<CommentDO> getChildComments(Long id);
}
